Carbon


HOpenDF

Header: Files.h Carbon status: Supported

Opens the data fork of a file.

OSErr HOpenDF (
    SInt16 vRefNum, 
    SInt32 dirID, 
    ConstStr255Param fileName, 
    SInt8 permission, 
    SInt16 *refNum
);
Parameter descriptions
vRefNum

A volume reference number, a working directory reference number, or 0 for the default volume.

dirID

A directory ID.

fileName

The name of the file.

permission

The access mode under which to open the file.

refNum

On return, a pointer to the file reference number of the opened file.

function result

A result code.

DISCUSSION

The HOpenDF function creates an access path to the data fork of a file and returns, in the refNum parameter, an access path reference number to that fork. You can pass that reference number as a parameter to any of the high-level file access functions.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)